package com.atguigu.gmall.item.vo;

import com.atguigu.gmall.pms.entity.CategoryEntity;
import com.atguigu.gmall.pms.entity.SkuImagesEntity;
import com.atguigu.gmall.pms.vo.ItemGroupVo;
import com.atguigu.gmall.pms.vo.SaleAttrValueVo;
import com.atguigu.gmall.sms.vo.ItemSaleVo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author fenge
 */
@Data
public class ItemVo {

    private List<CategoryEntity> categories;
    private Long brandId;
    private String brandName;

    private Long spuId;
    private String spuName;

    private Long skuId;
    private String title;
    private String subTitle;
    private String defaultImage;
    private BigDecimal price;
    private Integer weight;

    private List<SkuImagesEntity> images;

    private List<ItemSaleVo> sales;

    private Boolean store = false;
    // spu下所有sku的销售属性列表:
    private List<SaleAttrValueVo> saleAttrs;

    // 当前sku的销售属性:
    private Map<Long, String> saleAttr;

    // 销售属性组合 和 skuId的映射关系
    private String skuJsons;

    private List<String> spuImages;

    private List<ItemGroupVo> groups;
}
